<template>
    <div v-html="getter_pageHtml" v-highlight>
         {{getter_pageHtml}}
    </div>
    
</template>

<script>
import {mapActions , mapGetters} from 'vuex';
export default {
    name : "PageView",
    created(){
       var {title,classify} = this.$route.params;
       var obj = {title,classify};
       this.get_pageHtml(obj)
       //根据title和classify到服务器查询相关的文章
       //数据库当前文章的count增加1
    } ,
    methods : {
        ...mapActions(['get_pageHtml'])
    },
    computed : {
        ...mapGetters(['getter_pageHtml'])
    }
}
</script>